const Rounter = require('koa-router');

const { verifyAuth } = require('../middleware/auto.middleware');

const { create, list } = require('../controller/label.controller');

const labelRouter = new Rounter({ prefix: '/label' });

labelRouter.post('/', verifyAuth, create);
//获取标签列表
labelRouter.get('/', list);

module.exports = labelRouter;
